package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 张永远
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_storage")
public class StorageDo extends Model<StorageDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("storage_name")
    private String storageName;

    /**
     * area地区id (来自码表)
     */
    @TableField("storage_area")
    private Long storageArea;

    @TableField("day_price")
    private Float dayPrice;

    @TableField("day_price1")
    private Float dayPrice1;

    @TableField("day_price2")
    private Float dayPrice2;

    @TableField("code")
    private String code;

    @TableField("support_ship")
    private String supportShip;

    @TableField("address")
    private String address;

    @TableField("contacts")
    private String contacts;

    @TableField("tel")
    private String tel;

    @TableField("fax")
    private String fax;

    @TableField("country_type")
    private Integer countryType;

    @TableField("postcode")
    private String postcode;

    @TableField("day_price_original")
    private Long dayPriceOriginal;

    @TableField("size")
    private Float size;
    /**
     * 逻辑删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;
    /**
     * 0 正常启用 1关闭 2 盘点中
     */
    @TableField("active_flag")
    private Integer activeFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
